package com.aia.prm.web.sanity;

import org.apache.log4j.Logger;

import com.aia.prm.service.DefaultService;
import com.opensymphony.xwork2.ActionSupport;

public class Testws2Action extends ActionSupport {
	private static final Logger logger = Logger.getLogger(Testws2Action.class);

	private DefaultService defaultService;

	private String script;
	private String xml;
	
	private String outString;

	public DefaultService getDefaultService() {
		return defaultService;
	}

	public void setDefaultService(DefaultService defaultService) {
		this.defaultService = defaultService;
	}

	public String execute() {
		if (logger.isDebugEnabled()) {
			logger.debug("execute() - start"); //$NON-NLS-1$
		}

		defaultService.executeTestws2(this);
		return SUCCESS;
	}

	public String getScript() {
		return script;
	}

	public void setScript(String script) {
		this.script = script;
	}

	public String getOutString() {
		return outString;
	}

	public void setOutString(String outString) {
		this.outString = outString;
	}

	public String getXml() {
		return xml;
	}

	public void setXml(String xml) {
		this.xml = xml;
	}

}
